package com.example.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    private Logger logger = LoggerFactory.getLogger(LogController.class);

    @RequestMapping("/print")
    public String print(){
        logger.error("==========ERROR==========");
        logger.warn("==========WARN==========");
        logger.info("==========Info==========");
        logger.debug("==========DEBUG==========");
        logger.trace("==========TRACE==========");

        return "SUCCESS";
    }
}
